package cn.momoshenchi.common.exception;

/**
 * @version : 1.0
 * @author: momoshenchi
 * @date: 2021/4/28 - 20:12
 */
public enum BizCodeEnum
{
    UNKOW_EXCEPTION(10000, "其他错误"),
    VALID_EXCEPTION(10001, "参数错误");

    public Integer getCode()
    {
        return code;
    }

    public String getMessage()
    {
        return message;
    }

    private BizCodeEnum(int code, String message)
    {
        this.code=code;
        this.message=message;
    }

    private final Integer code;
    private final String message;

    }
